Skip to main content
POST
/
x
/
articles
/
{article_id}
/
publish
[Step 5/5] Publish an article draft
curl --request POST \
  --url https://api.twexapi.io/x/articles/{article_id}/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cookie": "<string>",
  "visibility": "Public"
}
'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "article_id": "<string>",
    "tweet_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

article_id
string
required

Body

application/json

Twitter cookie string

visibility
string
default:Public

Public / Followers / Mentioned

Response

Successful Response

code
integer
required

200 = success, 429 = rate limit, 500 = server error

msg
string
required

Human-readable result message

data
ArticlePublishData · object